﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XmlToJson
{
    public class ConvertorFactory:IFactory
    {
        public Convertor BuildConvertor()
        {
            Сonfig config=new Сonfig();
            config.readAttrib=true;
            config.readCdata=true;
            config.readComment=true;
            config.readTextNode=true;
            Convertor convertor= new Convertor(config);
            return convertor;
        }
        public Convertor BuildConvertor(Сonfig config)
        {
            Convertor convertor = new Convertor(config);
            return convertor;
        }
    }
}
